home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 25
/
CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso
/
CUCD
/
WWW
/
http
/
www.wirenet.co.uk
/
files
/
UpdateWirenet.lzx
/
Updates
/
SendEvents
< prev
next >
Wrap
Text File
|
2006-02-12
|
2KB
|
56 lines
/* $VER: SendEvents 1.2 (5.6.96) by Neil Bothwick */
/* Check if there are any outstanding events and if so send them */
/* Change these to suit your setup */
SystemName = 'Wirenet' /* The name of your Internet system in Thor */
MaxTries = 5 /* Maximum number of retries */
/* Don't change anything below here */
EVE_DOWNLOAD = 4
EVE_UPLOAD = 5
address command
if ~show('p', 'BBSREAD') then do
"run >nil: `GetEnv THOR/THORPath`bin/LoadBBSRead"
"WaitForPort BBSREAD"
end
if ~show('L','rexxdossupport.library') then
call addlib('rexxdossupport.library',0,-30)
do Try = 1 to MaxTries
if ActiveEvents() = 0 then leave
GetVar('Thor/ThorPath')||'bin/SendTCP BBSNAME' SystemName 'MAILSERVER $MAILSERVER NEWSSERVER $NEWSSERVER PUBSCREEN Workbench'
end
If ActiveEvents() > 0 then Ouch('SendTCP failed')
exit
ActiveEvents:
address BBSREAD
ActiveCount = 0
GETBBSDATA SystemName SystemData
do EventNo=SystemData.FIRSTEVENT to SystemData.LASTEVENT
drop EventData.
drop EventTags.
READBREVENT '"'SystemName'"' eventnr EventNo datastem EventData tagsstem EventTags
EventFlags = c2x(EventData.FLAGS)
if EventFlags = 0 | EventFlags = 8 then do
if EventData.EVENTTYPE ~= EVE_DOWNLOAD & EventData.EVENTTYPE ~= EVE_UPLOAD then return 1
end
end
address command
return 0
Ouch:
parse arg ErrMsg
say(ErrMsg)
exit
return